let
        Source = List.Dates(StartDate, Length, #duration(1, 0, 0, 0)),
        #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
        #"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Date"}}),
        #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Date", type date}}),
    // pour changer la date de début, modifiez le code ci-dessous
    // par exemple, un début au 1er mars 2020 s'écrit #date(2020, 3, 1)
        StartDate = #date(2018, 1, 1),
        Today = DateTime.Date(DateTime.LocalNow()),
    // la mention Today créé un calendrier courant jusqu'à aujourd'hui
        Length = Duration.Days(Today - StartDate),
        Custom1 = #"Changed Type",
    // Année fisc commençant au 1er août
        #"Inserted Year" = Table.AddColumn(Custom1, "Année fisc", each Date.Year([Date]+#duration(184,0,0,0)), Int64.Type),
        #"Inserted Month Name" = Table.AddColumn(#"Inserted Year", "Nom du mois", each Date.MonthName([Date]), type text),
        #"Inserted Day Name" = Table.AddColumn(#"Inserted Month Name", "Nom du jour", each Date.DayOfWeekName([Date]), type text),
        #"Inserted Month" = Table.AddColumn(#"Inserted Day Name", "Mois fisc", each if Date.Month([Date]) >=7 then Date.Month([Date])-6 else Date.Month([Date])+6  , Int64.Type),
    // numéro du jour, pour une semaine commençant le lundi
    // l'ajout +1 à la fonction DayOfWeek permet au lundi d'être numéroté 1 (au lieu du 0 par défaut)
        #"Inserted Day of Week" = Table.AddColumn(#"Inserted Month", "Num du jour", each Date.DayOfWeek(([Date]), Day.Monday)+1, Int64.Type),
        #"Inserted First Characters" = Table.AddColumn(#"Inserted Day of Week", "MMM", each Text.Start([Nom du mois], 3), type text),
        #"Inserted First Characters1" = Table.AddColumn(#"Inserted First Characters", "JJJ", each Text.Start([Nom du jour], 3), type text),
        #"Reordered Columns" = Table.ReorderColumns(#"Inserted First Characters1",{"Date", "Année fisc", "Nom du mois", "MMM", "Mois fisc", "Nom du jour", "JJJ", "Num du jour"}),
        #"Added Custom" = Table.AddColumn(#"Reordered Columns", "AAMM", each ([Année fisc]-2000)*100 + [Mois fisc]),
        #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"AAMM", Int64.Type}}),
        #"Added Custom1" = Table.AddColumn(#"Changed Type1", "ID Mois", each (Date.Year([Date]) - Date.Year(StartDate))*12 + Date.Month([Date])),
        #"Changed Type2" = Table.TransformColumnTypes(#"Added Custom1",{{"ID Mois", Int64.Type}})
    in
        #"Changed Type2"